/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 100px 20px 20px;
    background-color: #f5f5f5;
    color: #333;
}

/* 响应式布局 */
header, main, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #444;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* 移动设备优化 */
@media (max-width: 600px) {
    body {
        padding: 80px 10px 10px;
    }
    
    header, main, footer {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}

/* 页头样式 */
.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
    flex: 0 0 auto;
}

.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #666;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 15px;
    background-color: #f0f0f0;
    color: #666;
}

/* 微信行样式 */
.wechat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin: 20px 0; */
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.wechat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.wechat-btn img {
    width: 20px;
    height: 20px;
}

.wechat-btn:hover {
    background: #06ad56;
}

/* 浮动底部模块 */
.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
}

.floating-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.wechat-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-info .iconfont {
    font-size: 1.2rem;
    color: #07c160;
}

.add-wechat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.add-wechat-btn img {
    width: 20px;
    height: 20px;
}

/* 移动设备优化 */
@media (max-width: 600px) {
    .footer-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .footer-info p {
        font-size: 0.85rem;
    }

    .floating-footer-content {
        padding: 0 15px;
    }

    .add-wechat-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .add-wechat-btn img {
        width: 18px;
        height: 18px;
    }

    .header-title {
        font-size: 1.1rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }

    .wechat-row {
        padding: 10px;
        margin: 15px 0;
    }
    
    .wechat-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .wechat-btn img {
        width: 18px;
        height: 18px;
    }
}

/* 微信弹窗样式 */
.wechat-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.wechat-modal {
    position: relative;
    width: 300px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wechat-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.wechat-modal-close:hover {
    color: #666;
}

.wechat-modal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.wechat-modal-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.wechat-modal-id {
    font-size: 16px;
    color: #07c160;
    margin-bottom: 12px;
}

.wechat-modal-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.wechat-modal-confirm {
    width: 100%;
    padding: 12px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

    .wechat-modal-confirm:hover {
        background: #06ad56;
    }

    /* 资质认证弹窗样式 */
    .certification-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1002;
    }

    .certification-modal {
        position: relative;
        width: 90%;
        max-width: 500px;
        background: white;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .certification-modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 24px;
        color: #999;
        cursor: pointer;
        line-height: 1;
    }

    .certification-modal-close:hover {
        color: #666;
    }

    .merchant-info {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .merchant-avatar img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }

    .merchant-details {
        flex: 1;
    }

    .merchant-name {
        font-size: 1.5rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 8px;
    }

    .merchant-level {
        font-size: 1rem;
        color: #ffc107;
    }

.merchant-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 auto 20px;
    justify-content: center;
    max-width: 800px;
    padding: 0 20px;
}

    .merchant-gallery img {
        width: 100%;
        border-radius: 8px;
    }

    .merchant-meta {
        margin-bottom: 20px;
    }

    .meta-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    .meta-label {
        color: #666;
    }

    .meta-value {
        color: #333;
        font-weight: 500;
    }

    .merchant-description {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.6;
    }

    @media (max-width: 600px) {
        .certification-modal {
            padding: 20px;
        }

        .merchant-info {
            flex-direction: column;
            text-align: center;
        }

        .merchant-name {
            font-size: 1.3rem;
        }

        .merchant-level {
            font-size: 0.9rem;
        }

        .merchant-gallery {
            grid-template-columns: 1fr;
        }
    }

@media (max-width: 600px) {
    .wechat-modal {
        width: 90%;
        padding: 20px;
    }
    
    .wechat-modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .wechat-modal-text {
        font-size: 16px;
    }
    
    .wechat-modal-id {
        font-size: 14px;
    }
    
    .wechat-modal-tip {
        font-size: 13px;
    }
    
    .wechat-modal-confirm {
        font-size: 14px;
        padding: 10px;
    }
}

/* 底部信息样式 */
.footer-info {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: #f8f8f8;
    border-radius: 8px;
}

.footer-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.footer-info p:first-child {
    font-weight: bold;
    color: #444;
}

@media (max-width: 600px) {
    .footer-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .footer-info p {
        font-size: 0.85rem;
    }
}
